
<div class="container main-content">
<h1>Widgets</h1>

<table class="admin">
  <tr>
    <th class="admin narrow"></th>
    <th class="admin narrow"></th>
    <th class="admin">Ime</th>
  </tr>

<% @widgets.each do |widget| %>
  <tr>
     <td class="admin narrow"><%= link_to link_to image_tag('black_icons/delete.png', :class => "button"), widget, :confirm => 'Are you sure?', :method => :delete %></td>
     <td class="admin narrow"><%= link_to link_to image_tag('black_icons/pencil.png', :class => "button"), edit_widget_path(widget) %></td>
     <td class="admin"><%= link_to widget.name,widget %></td>
  </tr>
<% end %>
</table>

</div>

<div class="admin_links">
	<%= link_to 'Stvori widget', new_widget_path %>
</div>
